import React from 'react'

export default function Loading(props) {
  return (
    <React.Fragment>
      {/* 加载中占位 */}
      {props.flag?
      <div style={{
        position:'fixed',
        left:'0',top:'50%',
        width:'100%',
        zIndex:'3000',
        transform:'translate(0,-50%)',
        display:'flex',
        justifyContent:'center',
        alignItems:'center',
        flexDirection:'column'
      }}
      >
        <div className='traditional' style={{transform: 'translate(-12.5px)'}}></div>
        <div style={{marginTop:'30px',fontSize:'12px'}}>加载中</div>
      </div>:null}
    </React.Fragment>
  )
}
